Help needed with formula

=COUNTBLANK(C7:C16,),COUNTIFS(AP7:AP16,"X",AP7:AP16,"P")

Not working correctly...Not sure where its going wrong.