Query to create some groups based on activity

This is great!
How can find if the post at least 10 times over the last year?
Not just one like in your query

How can integrate this query? Posts created for period