Vomiting and hospital

I’m currently 16 weeks pregnant and have been sick the entire pregnancy. Today I’m feeling extra nauseous. I can’t keep any food or water down and have been throwing up lots of bile. I have thrown up about 10-15 times in 2 hours since I woke up and didn’t have any water overnight so I’m worried I’ll be getting dehydrated. I have take zofran but still throwing up. My dr said if you are throwing up a certain amount of times or for a certain period of time to go to the hospital but I can’t remember exactly what she said. At what point should I go to the hospital?