got a counter in the template... took forever.