return how many bytes are copied over in the read() function, otherwise it'll return 0