Okta Interview Question

Write a Python program to calculate the number of line that contain some word.