Help filtering data

To simplify this example, imagine I have a tab with inventory such as:

Name

Actual_price

Price_before

Water

5

4

Beer

8

9

Coke

6.5

6.5

Lemonade

6

6

Then, on a different tab, I want to count the number of items that have the same Actual_price and Price_before (like coke and lemonade in this example).

I'm trying to use something like this Count({<Actual_price={Price_before}>} Name). I'm guessing the solution should be fairly simple, but I've tried different variations without luck, I would appreciate any help.