Get Count Of Duplicate Values In Array Literal Error