A work-around for pushing patches to emulator
Put log counting related commands in the right order