Completed countInRange