I need to count the number of times the value of "x" appears in a row. Cannot figure out how to do it.