added count and sort options