CellsPerGroup function

Cells per group