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: 
JavaScript (*ES6*), 68
======================

I/O via popup. Run the snippet in Firefox to test.

```js
// As requested by OP

alert(prompt().replace(/\w+/g,w=>w.replace(/[^aeiou]/ig,'').length))

// Testable
f=s=>s.replace(/\w+/g,w=>w.replace(/[^aeiou]/ig,'').length)

test=[
 ['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']
]  

out=x=>O.innerHTML+=x+'\n'

test.forEach(t=>{
  r=f(t[0])
  out('Test '+ ['Fail','OK'][0|r==t[1]]
      +'\nInput:  '+ t[0]
      +'\nOutput: '+r
      +'\nCheck:  '+t[1]+'\n')
})
```

```html
<pre id=O></pre>
```
[Jelly](https://github.com/DennisMitchell/jelly), 7 bytes
=========================================================

```
Ḳf€ØcL€

```

[Try it online!](https://tio.run/##HU07DsIwFLuKlZlLMCCEhMQCBwjtC00JfW0@LWVk4QocgomJvSeBi4SkkmXLsmXXZMwY4/fzVr/7a3oW2yRxeiRexyj2lXZI8BVBaes8PCUqpCOxgOCG0JqQ8oFBXZAmVy3NoSTNAcvVZnfItnXOZ81TXdDFGUfLQwPFV9Th0lIJ7snOV0beRpR8En8 "Jelly – Try It Online")

Found with help from [Mr. Xcoder](https://codegolf.stackexchange.com/users/59487/mr-xcoder) in [chat](https://chat.stackexchange.com/rooms/57815/jelly-hypertraining)

Explanation
-----------

```
Ḳf€ØcL€ - Main link. Argument: s (a string)  e.g. "aeiou AEIOU"
Ḳ       - Split the input on spaces               ["aeiou", "AEIOU"]
   Øc   - Generate the string "AEIOUaeiou" 
 f€     - Filter out consonants from €ach         ["aeiou", "AEIOU"]
     L€ - Length of €ach                          [5, 5]

```

If the output *must* be space-separated, then append a `K` to the end