please help me .. about the following questions

create a program to count the vowels in the name of the inserted input
For example: input: "Mahendra Andrianto wijaya"
output: a = 6, i = 2, e = 1, o = 1

Create a program that ensures the writing of the name comprising more than one word with a capital letter
Example: input: "Mahendra adrianto wijaya"
output: "Adrianto Mahendra Wijaya"


Make the program look for pieces of words in an input string
For example:
input string: "Mahendra adrianto wijaya"
Input your text: "anto"
output: "the number of discoveries = 1,
the location discovery 1 = letter to the 5

I ask for help ,....