Quadrature Decoder / Counter