Added totalCount to view result