Using counter