Count String Function Python Example Code