Get Count Of Duplicate Values In Array Function