count method
params for paginator