How many hello? X50286


Statement
 

pdf   zip

html

Write a program that reads a list of words and prints the number of times that the word “hello” appears in it.

Input

There input is a sequence of strings.

Output

Print the number of occurrences of the word “hello”.

Observation

Take into account that “hola” is different from “Hola”.

Public test cases
  • Input

    hello and bye
    

    Output

    1
    
  • Input

    hello here it should be two hello
    

    Output

    2
    
  • Input

    Hello here none

    Output

    0
    
  • Information
    Author
    Maria Serna
    Language
    English
    Translator
    Maria Serna
    Original language
    Catalan
    Other languages
    Catalan Spanish
    Official solutions
    Unknown.
    User solutions
    C++ Java Python