CountsInRegion function

Counts in region