fast function to count set points within a square