adding support for pulse counter in playce and 8051