--- Python 3.8.3 ---
RawString = input()
r, t = [input() for _ in range(2)]
print(f'"r" (mean {r}) count: {RawString.count(r)}\n"t" (mean {t}) count: {RawString.count(t)}')
inp = input()
print(f'Кол-во "r": {inp.count("r")}\nКол-во "t": {inp.count("t")}')
--- Python 3.8.3 ---
RawString = input()
r, t = [input() for _ in range(2)]
print(f'"r" (mean {r}) count: {RawString.count(r)}\n"t" (mean {t}) count: {RawString.count(t)}')
inp = input()
print(f'Кол-во "r": {inp.count("r")}\nКол-во "t": {inp.count("t")}')