count number or values into the dictionary