I solve the problem, though Im hoping for other solution I guess.
Anyway here it is:
I first create a formula
@countA
if {V_RepairInv.Type} = 'A' or {V_RepairInv.Type} = 'a'
then 1
else 0
@countB
if {V_RepairInv.Type} = 'B' or {V_RepairInv.Type} = 'b'
then 1
else 0
I put this on the 'DETAIL' part of the report.
And then I created another formula
@countTYPEA
sum({@@countA})
@countTYPEA
sum({@@countA})
and placed it on the report footer.