Broadly speaking, no, there are not any functions that do that. Functions look at what is "inside" the cell, and formatting is applied "on top" of them.
Instead what you're better off doing is just running a COUNTIF on the range of formatted cells with the same criteria you used to apply the CF in the first place.
Bookmarks