Learn first
Geographic counts depend on the rule
A country is a political area; a territory can have a different political status. A continent is a large geographic land grouping. They are not interchangeable categories.
How to work it out Read the convention, date, and category used. Compare like categories and explain the rule behind a count rather than assuming one timeless total.
A separate example A separate list of islands and a list of countries can have different counts because they classify different things.
A country count depends on the definition, reference date and treatment of territories or recognition. UN membership is one clear category, not a universal definition of every country. The supplied historical 2024 UN reference lists 193 members and two non-member observer states.
Worked example
Using that 2024 reference, 193 members plus two observers makes 195 entries in the combined list, but the observers do not become members.