fn get_count(str string) int { mut count := 0 for r in 0 .. str.len { if str[r] == `a` || str[r] == `e` || str[r] == `i` || str[r] == `o` || str[r] == `u` { count++ } } return count } fn main() { println(get_count('hello')) }