block the pppoe connections - limit users

I’m trying to block the pppoe connections when you hit a number of users.

how to drop PADI packets or other solution.