jquery rotate max count

I have read through countless SO posts and have made numerous attempts, but a whole afternoon later I am still stuck. My code, combined with the jquery plugin that I am using can be seen here at this …