display number of items when pagination is disabled, fixes #298