Cokernel length over a discrete valuation ring
Let $O$ be a commutative discrete valuation domain, $M$ a finite free $O$-module, and $\varphi:M\to M$ an $O$-linear endomorphism with $\det\varphi\ne0$. With $v_O$ the valuation normalized by $v_O(\varpi)=1$ for a uniformizer $\varpi$, $$\operatorname{length}_O(M/\varphi M)=v_O(\det\varphi).$$
This converts local cokernel lengths into determinant valuations in arithmetic degree calculations.