This is correct. However, it's funny because when I'm writing stream of consciousness (or chatting with someone) I often write 4$ instead of $4 because I'm typing as I'm thinking, and I don't think "dollars of which there are four" but "four dollars" as number then unit following.