update view count in dim_resource