How many offensive players need to be on the line of scrimmage?

Seven, of which two are eligible receivers. All other offensive players must be at least one yard behind the line of scrimmage (the exception being the quarterback) for one second before the ball is snapped.