Change `getRegionCount` to actually return region count.

I'm not sure if we actually need this function as it doesn't appear to
be currently called from anywhere.