Bug 1075336 - Fix lifetime management of CounterStyle. r=dbaron, a=sledru