The 'getDbCount' function counts how many databases are currently opened and listed on the Tab control.