Making counter not recurse