Local contributions in $\mathbb{A}^1$-enumerative geometry