Measure area by counting square units