counting to 1000