Holograms are still entities, and will still count towards the limit. This isn't really something to be solved by in-game scripting.
Avoiding a second entity for the door is not easy, due to limitations in what's exposed to Lua. I can think of a few possible workarounds, but I don't have time to test them right now.