replace DeleteTabInfo with ~TabInfo, inline TabsGetCount