Counting hellos X23215


Statement
 

pdf   zip

thehtml

Write a program that reads a sequence of words and counts how many times the word "hello" appears

Input

The input is a sequence of words

Output

The output is the number of times the word "hello" occurs in the sequence.

Public test cases
  • Input

    hello world she said hello world he replied

    Output

    2
    
  • Input

    there is no such word here

    Output

    0
    
  • Input

    hello

    Output

    1
    
  • Input

    
            
                                

    Output

    0
    
  • Information
    Author
    Lluís Padró
    Language
    English
    Official solutions
    Python
    User solutions
    Python