I have a column of codes. The codes have a prefix, hyphen, followed by a number. There can be multiple codes, single codes or no codes in a cell. I need a formula that counts how many unique codes are the column. Example column below:

Codes
INA-721, INA-521, INB-222
INB-222

ING-111
IND-721
INA-123, INA-234, ING-111
IND-721

IND-21
INA-721, INA-123
INA-721
INA-999

I need a formula that produces a count of unique codes per prefix in place of the the numbers below:
Ind. Codes [B}# of Unique Codes[/B]
INA codes = 5
INB codes = 1
IND codes = 2
ING codes = 1

I have tried counting the code prefixes but that doesn't provide me the unique total.
I have tried counting the unique cells on this column but this considers the cells with mulitple values as unique, not looking at the individual values within the cells.