Simple again - increment usage counter at file open and decrement at file close. Reject opening if limit is hit.