\begin{tabular}{lr}: Starts the table environment. {lr} specifies two columns: the first is Left-aligned (l), and the second is Right-aligned (r), matching your Markdown :- and -: alignment.
\hline: Draws a horizontal line.
& count \\: This is the header row. Cells are separated by &, and the row ends with \\. The first cell is empty, as in your Markdown.
The subsequent lines are the data rows, following the same cell1 & cell2 \\ format.
\end{tabular}: Ends the table environment.
You can place this inside a table float environment if you want it numbered, captioned, and potentially float to a better position: