I want to calculate how many times the word yes is displayed in a column.

For example if this is my column, what code should I input in G6 to sum the yes answers.

Yes
No
Yes
Maybe
Yes
G6

Thanks in advance,
Ricardinho