Task: Program Execution
Input (English): Sentence: 'a girl wearing a cowboy hat while holding a dog'. Count the number of consonants in the given sentence.
Output (English): 23