method for number of bytes