Get categories list

Description#

Fetches a list of categories.

Input#

Pagination inputs#

Mechanism#

  1. Fetch and sort the categories by creation date.
  2. Count the amount of businesses that belong to each category.

Output#

An array of categories with the count mentioned in the mechanism.