Question: This is a rather easy challenge.

Challenge
=========

Input will contain a string (not `null` or empty) of maximum length 100. Output the number of vowels in each word of the string, separated by spaces.

Rules
=====

* The string will not be more than 100 characters in length.
* The string will only contain alphabets `A-Z` , `a-z` and can also contain spaces.
* Input must be consumed from the `stdin` or command line arguments.
* Output must be outputted in the `stdout`.
* You can write a full program, or a function that takes input from the `stdin` and outputs the result.
* The vowels that your program/function needs to count are `aeiou` and `AEIOU`.

Test Cases
==========

```
This is the first test case     --> 1 1 1 1 1 2
one plus two equals three       --> 2 1 1 3 2
aeiou AEIOU                     --> 5 5
psst                            --> 0
the quick brown fox jumped over the lazy dog --> 1 2 1 1 2 2 1 1 1

```

Scoring
=======

This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), so the shortest submission (in bytes) wins.

Answer: 
[AWK](https://www.gnu.org/software/gawk/manual/gawk.html), 42 bytes
===================================================================

```
BEGIN{RS=ORS=FS}$0=gsub(/[aeiouAEIOU]/,e)e

```

[Try it online!](https://tio.run/##SyzP/v/fydXd0686KNjWH4jdgmtVDGzTi0uTNPSjE1Mz80sdXT39Q2P1dVI1U///z89LVSjIKS1WKCnPV0gtLE3MATIzilJTFSIioxTS8kuLAA "AWK – Try It Online")

Regards each word as a different record (i.e., line), and substitute them for the count of vowels, calculated by the substitution function `gsub`. `e` is a dummy null variable, that, when appended to the number, makes awk parse it as string, so zero can be printed.
[Perl 5](https://www.perl.org/), 23 bytes
-----------------------------------------

**19 bytes code + 4 for `-p040`.**

```perl
$_=lc=~y/aeiou//.$"

```

[Try it online!](https://tio.run/##K0gtyjH9/18l3jYn2bauUj8xNTO/VF9fT0Xp/38wW8HR1dM/9F9@QUlmfl7xf90CAxMDAA "Perl 5 – Try It Online")