Write a Python program to count the frequency of words in a file.

Define a function that accepts two parameters:

  • A string that contains a file-path
  • A string that is to be searched in the file.

The function should return a Counter object that contains the words and frequency pairs. Check collections module.