Yeah,
I guess you can maintain some form of counter. To make it work reliably you probably have to add a database table. Increase the counter for the hospital on process study by calling sql() in the script. Reset the counters daily. If the counter exceeds your limit reject() the data.
So it is possible but not trivial.
Marcel