Print counter values with thousands separators

Signed-off-by: Pekka Enberg <penberg@iki.fi>