S->aSb { S.c=S.c+2 }
S->bSa { S.c=S.c+2 }
S->epsilon {S.c=0 }
1. Equal no of a's and b's .
2. No of a's or no of b's in a given string .
3. No of a's and no of b's in a given string ..
4. None of these .
According to me , it should be total no of a's and no of b's .