Number of connection running within certain period of time?
Something like this might do the trick, assuming your mysqld is listening on port 3306:

$ netstat -ant | grep ":3306" | grep ESTABLISHED | wc -l
50


You can put this in a script and execute every 10 minutes through cron.