Need Help

I have a webpage , where I can insert word counts for a single document
file that I upload.I want a feature such that when I insert the word
count for the document a pop-up should come up saying the price for
uploading the document. How can I do it ?? I am stuck at this point