A Counterfactual Account of Essence