numInTop function
text files