Adding a count query with long mapping.