Counting number of rows of a colour