Count rows

Count non-empty rows in the list.