Multiple pool objects, spawn limit

I have numerous UI books. I would like to only allow the player to activate X amount of books at a time. How would I go about this?

Keep a tally of the number of books they have open, and if they try to open a new one either close the oldest book or prevent the operation entirely.

But how would I go about coding this? I’m a novice with coding in C#

I figured it out using Lean Pool and some custom coding!