Add some tests in main
Change len() so that it returns the number of occurrences, not number of distinct values. Add a num_distinct() method