How to count empty cells only if another associated cell is a text values?

I have the following table,

A B
Patient Date
Alex 1/1/2023
Cody (blank)

where I want to count blank cells only if there’s text value in the associated cell in column A…

Thank you so much