plugin example for https://forum.pyrocms.com/discussion/24488/disabling-streams-after-reaching-specific-count-of-entries#latest