Lilypad on the move

Now i am working with the lilypad 328 Main board, the Accelerometer ADXL335, Tri-Color Led.
So the programming has been written as:

void loop()
{
sensorvalue = digitalRead(sensorpin);
if (sensorvalue == HIGH)
{
digitalWrite(ledPin,LOW);
}
else
{
counter = counter +1;
delay(1000);
digitalWrite(ledPin,HIGH);
}
if (counter == 10)
{
color(0, 255, 0);
counter = 0;
}

So you can see if the counter reach 10 the LED light will change color but if the accelerometer did not make 10 count is there any way i can know / extra the information from the device that it has made Eg 5 or 8 counts from the lilypad itself? :-X