class library: count only named controls for the limit number of controls