Get Count Of Duplicate Values In Array Definition