So I came up with this, though the counter is not working properly.
const stringVowel = ('hottentottententententoonstellingsbedrijfsacademie')
const letters = stringVowel.split('');
const numberOfVowels = arr => arr.map(num => {
let counter = 0;
if (num === 'a' || num === 'o' || num === 'u' || num === 'e' || num === 'i') {
counter++
}
console.log(counter)
})
numberOfVowels(letters)