Counts the number of tasks.
This endpoint returns the count of all tasks regardless of the task status
.
Optionally, you can pass a filter to count only tasks based on specified criteria.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Filtering options.