CREATE TABLE table_30140 ("Institution" TEXT, "City" TEXT, "State" TEXT, "Team Name" TEXT, "Affiliation" TEXT, "Enrollment" FLOAT, "Home Conference" TEXT)

How many states were there when there was an enrollment of 2789?
SELECT COUNT("State") FROM table_30140 WHERE "Enrollment" = '2789'
SELECT COUNT("State") FROM "table_30140" WHERE "Enrollment" = '2789'