Rev 88

moved Dupe Count to function