The 2 PHP classes in the PoolCounter extension should be moved into MediaWiki core (along with the existing PoolCounter stuff), and the daemon should be put into a mediawiki/services/poolcounter repository.
Today there's an established pattern of having PHP code in core that depends upon a MediaWiki service (parsoid/restbase/etc.), and we also have a pattern for maintaining external services intended for use by MediaWiki.