If you want to count the cells with DATES and there are no numbers in any
other cells:
=COUNT(A1:A100)
DATES are just numbers formatted to look like dates. So, if you have both
DATES and numbers in the range then you'll have to narrow it down and define
a minimum date and a maximum date then get the count that falls within that
range.