baby not sleeping through the night

Nunu
I just read online that by 4 months, baby should be sleeping 7-8 hours a row at night. My son is no where close to that. He still wakes up every three hours to eat. How do I fix this?