Count Method In Python In String Function