Welcome to the forum
@Tahir M
As you have multiple criteria, you need to use the COUNTIFS function instead.
It works like this: =COUNTIFS(range1,critera1,range2,critera2)
So your formula might look something like this:
=COUNTIFS(C:C,"T",AE:AE,"Open")
Just replace the "T" with "O" to count the Os.