%{
#include <stdio.h>
int vowels = 0;
%}

%%
[AEIOUaeiou]    { vowels++; }
.|\n            { }
%%

int yywrap()
{
    return 1;
}

int main()
{
    printf("Enter a text:\n");
    fflush(stdout);

    yylex();

    printf("\nNumber of vowels = %d\n", vowels);
    return 0;
}
