read timer 1

To read the Timer1 counter register:

unsigned int count=TCNT1;

For this to be useful, the timer has to be set up correctly. Keep in mind that certain Arduino functions use Timer1.