I understand that grep -c string can be used to count the occurrences of a given string. What I would like to do is count the number of unique occurrences when
grep -c string
This worked perfectly... Thanks to everyone for your comments!
grep -oP "wwn=[^,]*" path/to/file | sort | uniq -c