Issue #46 added disconnect method to latchcounter