Checking the number of bytes read.