Fixed counting occurences of numeric keys
Worked on #4