fix count when testing composite error output

fixes [this failure](https://github.com/ipython/ipython/pull/2871#issuecomment-13883071)