|Unfortunately, I can't see your spreadsheet from here, so it's kind of hard to tell me why it's not working.|
The theory behind an SUM Array formula is that it checks each cell in one array against it's corresponding cell in the other array. i.e. A5 against F5, A6 against F6, etc. If the condition for A5 is TRUE, it equals 1, if the condition for F5 is TRUE, therefore 1 * 1 is 1. If either condition is FALSE, 1 * 0 = 0, or 0 * 1 = 0.
After it has evaluated all of the array pairs, it SUMS all the 1's resulting in the number of array pairs that were both TRUE.
Here's what I did as a test:
1 a xx
2 b xx
3 c xx
4 a xx
5 b xx
6 c xx
This formula returns 2, as expected, since A1,F1 and A4,F4 are TRUE.
The best I can offer at this point is for you to ensure that the criteria in your formula matches exactly what is in the cells.