Counting Grids with constrained mapping