Counterfactual-based Agent Influence Ranker for Agentic AI Workflows