Tech Mahindra interview question

Write snippet for counting vowels in a string?