Changed tags API to return counts.