pass also the count of areas to the caller