basic pulse couning using hardware timer1 with external clock source