Question: how many villagers are needed to spawn an iron golem?
Answer: In Bedrock Edition, an iron golem can spawn naturally when a village first generates in the world. Iron golems also spawn in villages having at least 20 beds and 10 villagers, in a 16×6×16 volume around the village center defined by a bed, a bell, or another meeting point.