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: 
R, ~~44~~ 43 bytes
==================

```r
cat(nchar(gsub("[^aeiou]","",scan(,""),T)))

```

Ungolfed + explanation:

```r
# Read a string from STDIN. scan() automatically constructs a vector
# from input that contains spaces. The what= argument specifies that
# a string will be read rather than a numeric value. Since it's the
# second specified argument to scan(), we can simply do scan(,"").

s <- scan(what = "")

# For each word of the input, remove all consonants using gsub(),
# which is vectorized over its input argument.

g <- gsub("[^aeiou]", "", s, ignore.case = TRUE)

# Print the number of remaining characters in each word to STDOUT
# using cat(), which automatically separates vector values with a
# single space.

cat(nchar(g))

```
PowerShell, 65 bytes
--------------------

```
($input-split'\s'|%{($_-split''-match'a|e|i|o|u').count})-join' '

```

test by using the pattern below after saving as `vowels.ps1`

```
"the quick brown fox" | vowels.ps1

```

This way it is an actual script and not just a code snippet thereby satisfying constraint:

*"Input must be consumed from the stdin or command line arguments."*