Return count of locations from query, instead of list of occurrences