Revert "reduce cookie tracking (2/4): add a way to count cookies"

This reverts commit 552470ba3b3a3dcf2e80061f0089c06be0fd52d2.