view count functions and display