Added Selector.by_counts() method.

This basically wraps sequencetools.partition_sequence_by_counts(). See API
entry for examples.