Added option to limit number of selected tags

Resolves #20