using JSON for cat count