count number of rows in best fit group of words