Fixed global counter in go