We have some stories that have moved from sprint to sprint over time.
I'd like to be able to query (JQL) JIRA to identify them and/or count how many sprints a story has been in.
On the story details -> Agile section I can visually see the sprints that a story has been in:

Hopefully there is some tips or JQL to give the answer, 5 in this case.
Thank you.