How Do I Count Field Items by String in a Collection?

what is happening when you run this code now?