In a python str how to know the number of times repeat a string?