dim.repgrid function

Return size of a grid.