How to increment a key in the dictionary