I have two columns A (items) and B (store names). I need to check the ranges A:A and B:B and count how many times a certain item appears in column A AND a certain store appears in column B. For example I want to see how many times the item "plates" are listed for the store "walmart". If I had the following data

napkins walmart
plates walmart
forks target
plates walmart
spoons target

I should get an answer of 2 because "plates" AND "walmart" appear in the same row twice. If I asked for "spoons" and "target" I would get 1, and if I asked for "spoons" and "walmart" I would get 0. Is there are formula that I can use to check the same row in two different columns for certain values and count the rows that have those values?