There are two on each engine and two on the APU. Since the generators are driven backwards as starters, it is sort of vaguely true that they also supply power to the engines but he is irrelevant while in flight unless you are doing a cross-start in the air.