Count String Function Python Example