count now returns primitive object with indexes and counts