add sleep counter