A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Have a look at the following link.
The formula (with example) given there should be able to help you resolve your problem with slight modification.
https://www.extendoffice.com/documents/excel/4874-excel-count-blank-cells-in-filtered-range.html
Hope this Helps.