$ awk -F, 'NR>1{arr[$1]++}END{for (a in arr) print a, arr[a]}' file.txt
joe 1
jim 1
mike 3
bob 2
EXPLANATIONS
-F,splits on,NR>1treat lines after line 1arr[$1]++increment arrayarr(split with,) with first column as keyEND{}block is executed at the end of processing the filefor (a in arr)iterating overarrwithakeyprint aprint key, arr[a]array withakey