Python Program To Count Repeated Substring