hackerrank.com » Repeated String
stackoverflow.com » How to count number of occurrences of a substring inside a string in Python?
$ python3 -m unittest test_repeated_string.py
......
----------------------------------------------------------------------
Ran 6 tests in 0.000s
OK