How many churches opened before 1850 are there?
select count(*) from church where open_date < 1850