Avec `\UseTblrLibrary{counter}` :
    \documentclass{article}
    \usepackage[utf8]{inputenc}
    \usepackage{tabularray}
    \UseTblrLibrary{counter}
    \newcounter{moncompteur}
    \begin{document}
    \setcounter{moncompteur}{1}
    \begin{tblr}{XX}
      \themoncompteur\stepcounter{moncompteur} & \themoncompteur\\
    \end{tblr}
    \setcounter{moncompteur}{1}
    \begin{tblr}{XX}
      \themoncompteur & \themoncompteur\\
    \end{tblr}
    \end{document}\end{document}
![alt text][1]
  [1]: https://texnique.fr/osqa/upfiles/Screenshot_2023-01-23_at_11.00.48.png