How long is a piece of string??! sorry but pain isn't always an indicator that they are about to cut a tooth, although at eight month it is quite likely. My dentist told me that they get pain as the tooth travels through the gums as well.
Brufen is good for tooth pain if sutable for your child, if not calgel and calpol at the ready etc etc...
Hope you get a decent nights sleep soon