added counter (GPIO) example