Updated count.py and fixed parsing error.
Merge pull request #15 from jlburgos/master

Fixed json errors and updated json format as well!