implement creating linear counter with arbitrary standard error