list manipulation – How to generate a "frequency of values" table with random numbers?

I want to create a "value frequency" table from the following expression.

Account[Sort[RandomInteger[{1, 5}, 500]]]// TableForm

The generated table must be in LaTeX form either

  • Two rows and n columns. First row: Value, Second row: Frequency
  • n rows and 2 columns. first column: value, second column: frequency

Optionally with the headings "Value" and "Frequency" so that it looks good.

How to achieve this?