Count String Function Python Syntax For Loop