Is there a function that allows you to count if column A contains anything from column B?

For example, lets say Column A contains a long list of names and Column B contains 4 or 5 names. I want to count if any of the names listed in Column B appear in Column A, not how many times just if they appear at all. I could do it with a long list of IFs but not only is that inefficient, the list of names in column B is dynamic, and will change over time.

I thought DCount would do it, but unless I'm reading it wrong, that also requires me to input every individual name into the formula that I want to check for.