Create a column that has a function to perform the comparison, e.g. =A1 > B1
. This will give you a column that contains TRUE or FALSE for your comparison. Then you can use the COUNTIF function to count the results of this function, e.g. =COUNTIF(C:C, "=TRUE")
.