Potential fix for counting issue
Another fix for counting issue, json was sending count as string instead of number.