Google Sheets: how to find out the total number based on the particular conditions.

Let's say, I have a sheet with these 2 columns, where column A is for & # 39; Comments & # 39; and B for & # 39; Date & # 39; The 2nd and 4th rows are intentionally left blank to simulate that Comments and Date are not provided.

A B
-------- -----------
Automatic closing 11/25/2018

DEC-2018 12/3/2018

Car closed on 12/5/2018
Self closed 12/12/2018

Now, I need to find out the number of records that are "Automatically closed" in December (12).