Added limit support

Support to limit the amount of categories returned