First version of entity counter.