Add in script to count duplicates.