Jira SQL Query - Get the count of custom fields