Create a function that counts the number of adverbs in a sentence. An adverb is a word that ends with ly.
countAdverbs("She ran hurriedly towards the stadium.") ➞ 1
countAdverbs("She ate the lasagna heartily and noisily.") ➞ 2
countAdverbs("He hates potatoes.") ➞ 0
countAdverbs("He was happily, crazily, foolishly over the moon.") ➞ 3
ly is in the beginning or the middle (e.g. Lysol, Illya).ly).