implement block count for esent