直接全部大写 upper 或小写 lower 并进行统计 count 🤣

input().upper().count(input().upper())