implemented view counts