Numbering specific rows in an array based on a unique filter