added getNumberOfRegions functions (added services)