added count property to pagination