Hide the line detail and count the rows. ;-)
Otherwise, I think I'd use a formula on the base data, not the pivot table, although you could create a formula outside the pivot table using the pivot table PO column range. If you left the PO subtotals visible, you could count those (excluding the grand total row(s) from the range):
=COUNTIF(A5:A26,"* Total")
Otherwise, if you hide the subtotals, you could just use COUNT.
As with any formulas referring to pivot table ranges, you will have the problem of the range of the formula not changing as the pivot table is changed.