Change count function in storage list page

SQLAlchemy count to jinja2 count