Extracted the new count stuff to a seperate plugin to be included via typoscript.