I am writing a table to show how an object fills some space directions. Here is my code
\begin{tabular}{lcccccccccc}
& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\
\hline
D5 & x & x & x & & x & x & x & & &
\end{tabular}
and I get this
Now what I would like is to insert a bracket under columns 0-4 as in this image
Any idea?