You can do this with a User Defined Function.
To enter this User Defined Function (UDF), <alt-F11> opens the Visual
Basic Editor.
Ensure your project is highlighted in the Project Explorer window.
Then, from the top menu, select Insert/Module and
paste the code below into the window that opens.
To use this User Defined Function (UDF), enter a formula like
=CountFormulas(A1:A10)
in some cell.
========================================
Option Explicit
Function CountFormulas(rg As Range) As Double
Dim c As Range
Dim t As Double
For Each c In rg
If c.HasFormula Then t = t + 1
Next c
CountFormulas = t
End Function
========================