CodeLab Academy 📞 9936 6696
← List Python · Level 6: Strings Code · 60 points ← #540 #542 →

#541. How many times does a substring appear?

You are given two strings s and t. Count how many times t appears in s without overlapping (`s.count(t)`). ### Input Two lines. ### Output A number.

Examples

Input
aaabaabbbaab
ba
Output
2
Input
aaabbabaababababa
aa
Output
2

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!