Move modifyCount into namespace detail and rename to subtractFromCount, changing the meaning of the parameter n to be -n.
Add ALGO_CALL:: to code that did not correctly have it.