# How do I get the number of rows of a datatool table?

I create a table as follows:

\usepackage{datatool}
\begin{document}
\DTLnewdb{MaTable}
\end{document}


This table may be filled with several occurrences of

\DTLnewrow{MaTable}
\DTLnewdbentry{MaTable}{key}{value}


My question is: How can I get the total number of rows of the table?

-

## 1 Answer

The answer is just

\DTLrowcount{Table}


I'm sorry. I was looking for it in the documentation, but i was reading after the section "creating a new database" ... :(

-
No need to apologize. We've all done this. And it's fine to answer your own question (and accept it once the time limit allows you to.) –  Alan Munn Jan 10 '12 at 17:13
yes ... in my case, it gave me the opportunity to answer a question ! which happens to me not so often ;) –  nicolas roy Jan 10 '12 at 17:30