Add support for tracking build counts for agents.