Determine the number of key-value pair
Given a dict, return the number of key-value pair.
Sample Code:
def countProp(d):
# Enter your logic here...
Examples:
Input: {key1:'value',key2:'value'}
Output: 2
Explanation: The dict has two key-value pair.
Input: {}
Output: 0
Explanation: There are no key-value pairs in dict.