find the appearance of words from input text file ,in other text file

Hi..please can anybody help me..im beginner and i have a hard assignment
i need to write a c++ program that do the follwoing :

1.aske the user to enter two text file the first one containe the text file ,the second one contain list of words in one column Regardless of their number
like this :
Enter the text file : text_file.txt
Enter the keywords file : keywords_file.txt

2.search for the keywords from key words file in the text file
3.find the apperancse of each word like this :

system : 55 times
analysis :21 times

4.the output in new text file (ofstream)