Added methods to set and get the number of rows per block