Counting a's (1) P97969


Statement
 

pdf   zip

thehtml

Write a program that reads a sequence of characters ended with a period and prints the number of letters ‘a’ in the sequence.

Input

Input consists of a sequence of characters ended in a period.

Output

Print the number of times that ‘a’ appears in the sequence.

Public test cases
  • Input

    I am an instance with four a's.
    

    Output

    4
    
  • Input

    I just have one.
    

    Output

    1
    
  • Input

    Absolutely none.
    

    Output

    0
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    C C++ Java Python Rust