count occurrences of records in crystal report fields

Jun 26 2012 2:24 AM
I have crystal report like this
R.No day1 day2 day3
1        A     P     A
2        P      P    P
3        P     P      P

NOW I WANT TO CALCULATES NO OF "P"S IN FIELDS DAY1 DAY2 .... AND DISPLAY IN FORMULA FIELD
CAN ANY ONE GIVE ME THAT FORMULA TO COUNT NUMBER OF " P"S

Thanks
Znaneswar