add binary counter