adding entity_freq()