def file_search_cnt(f_name, pattern):

    """Function:  file_search_cnt

    Description:  Search for a pattern in a file and count the number of lines
        the pattern is found in.

    Arguments:
        (input) f_name -> File name.
        (input) pattern -> Pattern searching for.
        (output) Number of lines found with the pattern in it.

    """

    return open(f_name, "r").read().count(pattern)