I want to count how many cells that have a value given that a corresponding cell in another column has the value x. Any good ideas how to get this done? The value given if one wanted to count how many cells in A has a value given that the corresponding cell in B has an x on the dataset on the image under is 4

This resolves as
Trues are 1 and Falses are zero when forced to be a number (like when you multiply them).