As you haven't showed us the complete sample input of ps -auxwww . So following may help you in same though we could make it more simpler within single awk etc.
Your match can't possibly work as the regex is not correctly delimited. And, in your output, the colon is missing that the substr should select due to RLENGTH+3 (instead if e.g. 4).
With some assumptions from my part, try
ps -auxwww 2> /dev/null | awk 'match ($0, /GIN:[^ ]*/) {C[substr($0, RSTART+3, RLENGTH-3)]++; SUM++} END {for (i in C) print C, i; print "Total:", SUM}'