wine glass. harmonica related?

you know when you rub your finger around a glass and it produces noises when water is in the glass (or wine glass); why are different sounds produced when you add different amounts of water to the wine glass? does the note go higher when less water is added or lower?! does the note go higher or lower when the more water is added?