activate view count for layers and documents

should fix the #648