added 'count' data field to html templates