If you're trying to 'count', then try:
whileprintingrecords;
numbervar x;
if {PR_Status_Type.name} In ["Opened", "Pending Action Closure", "Pending Compliance Approval"]
and {#Commit. Action Completion Date}>{#Original Commitment Due Date} then
x := x + 1;
Place this formula on the details section or the section that has the Running Totals.
Create another formula and place this on the Footer:
whileprintingrecords;
numbervar x;
-Abhilash