I am trying to find out how many times a certain varible appears in a list of equations

how many times AF3 apprears in column A
how many times AN3 appears etc

column A

I used the following on the basis of using this formula repeatedly ie in the case below for AF3 and then so on inserting a different "*varible*" each time

so i would have



but when idid it for the 1st one it seems only to pick out one occurance per row if it is there ie in the above it gave a value of 2 instead of 3 i tested it putting AF3 3 times across a row and it only gave 3 as the and also taking one af3 out of the 1st equation it still gave 3

any ideas,
thank you