The Rest API is used to get a DMN/CMMN definition count.
The appropriate 'count' enpoint is called.
Before the database is queried, a check is performed that DMN/CMMN is actually enabled. If not, an empty result is provided.
Independently of the status of CMMN/DMN, a count query is performed against the database.
Ticket was created on behalf of https://github.com/camunda/camunda-bpm-platform/pull/338