Generating the agent name based on entity type field name and a count