Add Array#counts

Change Array#duplicates to leverage #counts