Answer:
input_string = input()
char, phrase = input_string.split(' ', 1)
count = phrase.count(char)
print(count)
Explanation:
You can run this program and input strings like the ones mentioned in the examples:
Input: n Monday
Output: 1
Input: z Today is Monday
Output: 0
Input: n It's a sunny day
Output: 2
Input: n Nobody
Output: 0