Counting and detecting duplicates or repeats

@matthew.wright

Here you go