The number of the page on which some text sits is the name of the text's parent text frame's parent page (if you see what I mean):
var found_words = my_document.findText();
$.writeln (found_words[0].parentTextFrames[0].parentPage.name);
That's CS5 and later. In CS4 it's slightly different, I forget the details.
Peter