I wish to redefine the `enumerate` environment to have a continuous numbering through the different lists. I managed to do this, but my solution fails when using the babel package. Here is my ECM: it's OK when the babel line is commented.

May anyone explain me what's wrong with this package? Thanks a lot.

```
\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}

\def\nbq{0}
\let\oldenumerate\enumerate
\let\oldendenumerate\endenumerate
\renewenvironment{enumerate}{\oldenumerate\setcounter{enumi}{\nbq}}{\xdef\nbq{\theenumi}\oldendenumerate}

\begin{document}

\begin{enumerate}
\item \nbq
\item \nbq
\end{enumerate}

\begin{enumerate}
\item \nbq
\item \nbq
\end{enumerate}

\end{document}

```