Answer: 5
S→ aSa | bSb | a | b | epsilon
1st production S→ aSa
2nd production S→ bSb
3rd production S→ a
4th production S→ b
5th production S→ epsilon
Palindrome strings = odd length palindrome( production 1,2,3,4) + even length palindrome (production 1,2,5).
Here single variable is ‘S’ which is start symbol.