Added server side pagination
Included basecontroller to have "count" as common action method