In script 2.2 the "count.dups" function is defined, and everything runs smoothly (without error), but the function isn't doing what its meant to -- it reports 1 duplicate for every record but we know there are more than that because we remove so many!