Write a program that reads a sequence of characters and prints the
number of letters ‘a’ in the sequence before the first
period.
Input consists of a sequence of characters with at least one period.
Print the number of times that ‘a’ appears in the
sequence before the first period.
The expected solution for the exercise problem://problemsjutge.org:problems/p1/roura/comptar-as.pbm is also a correct solution for this exercise.
Input
I am an instance with four a's.
Output
4
Input
I just have one. Yes, exactly one.
Output
1
Input
Absolutely none.
Output
0