Medicine help?!?!

So my doctor told me I can take unisom to help with not sleeping in my pregnancy but he didn’t say how many mg and the ones I see say 25mg wouldn’t that be to much?