Counts

Counts[list]

gives an association whose keys are the distinct elements of list, and whose values give the number of times those elements appear in list.

Details

  • Counts[list] gives an association whose keys are in the same order as they first occur as elements of list.

Examples

Basic Examples  (2)

Introduced in 2014
 (10.0)