Você passará um caminho de arquivo P e string s na linha de comando. Saia o número de vezes que as strings aparecem no arquivo P.

You will be passed a file path P and string S on the command line. Output the number of times the string S appears in the file P.

file = open(P, 'r')
ptext = file.read()
print(ptext.count(S))
file.close()
Suspended Suspense