Excel coding gurus, can someone help me count in Excel? :) I need a count, based on multiple, dictionaty depandant, conditions.

**What I have**:
I have an Excel 2019. Not the 365 edition.
I have an Excel sheet called, say **Dicts** with a table of 2 columns. I is a dictionary. Column `I` contains list of people. And each person in the `I` column has the country of his/her origin denoted in the correspondent cell of `H` column.

For a better view check this picture, plz.

[![Dictionary of persons with their Country of Origin](https://i.stack.imgur.com/cSTSd.png)](https://i.stack.imgur.com/cSTSd.png)

And I have a DataSheet, that contains records of various persons from the dictionary table along wiht some data on each record.
For a better view check this picture, plz.

[![enter image description here](https://i.stack.imgur.com/K2V61.png)](https://i.stack.imgur.com/K2V61.png)

**Now, the question is**:
How can I count the number of all the citizens of USA and Iitaly in the column `A` that have either **Y** or **M** in the correspondent cell of Column `B`?