Counting instances in a multi-dimensional array

That's for later use when I want to cycle through a chosen row. @david_2018 has helped find the solution for moving down a column.