You'll need a helper column to "break-out" the return of the CELL()
function.
Then count whatever particular format "label" you're interested in.
With ColumnA the column of interest, you could, for example, enter this in
B1:
=CELL("format",A1)
And drag down to copy as needed.
Then use this for example:
=COUNTIF(B1:B100,"P0")
You could also use a particular cell in ColumnB that matches the format
you're interested in:
=COUNTIF(B1:B100,B7)