Mweb 965

Do not merge
could you move this to map.utils as a separate method for getting count?