# Get metadata query usage count Returns the number of categories that currently use this metadata query. Features: - Efficient counting using SQL COUNT queries with JOIN - Returns exact count of categories bound to the metadata query - Useful for impact analysis before metadata query changes - Supports ontology change management workflows Use Cases: - Determine impact before deleting a metadata query - Analyze metadata query usage across categories - Support ontology change management decisions - Dashboard statistics for metadata query utilization Example Usage: - GET /accounts/acc-12345678/ontologies/ont-87654321/metadata-queries/123e4567-e89b-12d3-a456-426614174000/usage-count Response: Returns a simple count object indicating how many categories are currently bound to this metadata query. Performance: - Optimized for large ontologies using database indexes - Uses SQL COUNT with JOIN for efficient counting - Returns exact counts without loading category data into memory Endpoint: GET /accounts/{accountId}/ontologies/{ontologyId}/metadata-queries/{metadataQueryId}/usage-count Version: 1.0.0 Security: bearerAuth ## Path parameters: - `accountId` (string, required) Short account ID with scd- prefix Example: "scd-k2j8n4m1" - `ontologyId` (string, required) The ID of the ontology - `metadataQueryId` (string, required) The ID of the metadata query ## Response 200 fields (application/json): - `count` (integer, required) Number of categories that use this metadata query Example: 3 ## Response 401 fields ## Response 404 fields