 const int clockPin = 10;
 
 const long refreshInterval = 10; //refresh delay in microseconds
-const long countInterval = 100; //counter delay in milliseconds
+long previousRefresh = 0; //previous refresh time
+int refreshLoop = 0;  //counter for refreshing loop
 
-long previousRefresh = 0; //previous refresh time
-long previousCount = 0; //previous count time
-
-int refreshLoop = 0;  //counter for refreshing loop
-int countLoop = 0; //counter for counting loop
-
-int num[] = {-1,-1,-1,-1};  //array for display numbers, {ones, tens, hundreds, thousands}
+int num[] = {0,-1,-1,-1};  //array for display numbers, {ones, tens, hundreds, thousands}
 
 void setup() {
   //setup  pin modes to output

   digitalWrite(latchPin, LOW);
   shiftOut(dataPin, clockPin, LSBFIRST, leds);
   digitalWrite(latchPin, HIGH);
}

void pickDigit(int j) {
  // pick which digit to display depending on the value passed in j
  for (int i=1; i<4; i++)
    digitalWrite(digits[i], HIGH);

  digitalWrite(digits[j], LOW);
