title: How to count number of times a JIRA issue has been in a specific Priority
body: <p>To see how many issues have been in my <code>Critical</code> priority within the last month I am using this JIRA JQL:</p>
  
  <pre><code>priority was Critical during (startOfMonth(-1M), endOfMonth(-1M))
  </code></pre>
  
  <p>But I cannot figure out if it is possible to COUNT the number of times it has been in this exact priority (it can switch priority multiple times)?</p>