reduce cookie tracking (3/4): add a way to count cookies

Change-Id: Ibc1c8d3160a89de51531a89c5103b47ba2c2c649
Merge "reduce cookie tracking (3/4): add a way to count cookies" into pac-4.4