How many people are there for Glengallan having a Rosenthal population less than 1,582 for years before 1976 with a total population of 25,917?
CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_stanthorpe" real,
  "population_warwick" real,
  "population_allora" real,
  "population_glengallan" real,
  "population_rosenthal" real
);
SELECT COUNT("population_glengallan") FROM "population" WHERE "population_rosenthal"<'1,582' AND "year"<1976 AND "population_region_total"='25,917';