PPPoE active connection limit per routerboard

Hi!

Is there a way to limit the total number of PPPoE active connection to a routerboard hosting several PPPoE servers?

Thanks!

Hi. So only could make a script to check this
ppp active print count-only where service=“pppoe”
and compare with your maximum value of pppoe sessions