You will need to read the specific line in which the number is stored and then (maybe) cast it to a number type variable (haven't coded Lua in a while).
fs.open(), if I'm not mistken, just opens the file to be read and assigns it to a variable.
I think what yo want is something along the lines...