How many countries did the British fight during the American War of Independence?

By 1780, the British were fighting not only the United States and its ally France during the American War of Independence, but also Spain, the Netherlands, and the ruler of Mysore in India.

The conflicts were not all related to American independence, but they did keep the British busy on many fronts, aiding the U.S. cause.