At last count, there are 197 independent countries currently recognized by the United Nations, and each has its own respective flag.

Source: https://www.carportcentral.com/infographics/know-the-meaning-of-flag-colors-and-symbols