Count Unique Strings In List Python Methods Vs Functions