How To Count Elements In A String In Python