Task: Program Execution
Input (English): Sentence: 'a black gray and white bird water and dirt'. Count the number of consonants in the given sentence.
Output (English): 23