Get the number of bytes (characters) available for reading from the serial port. This is data that's already arrived and stored in the serial receive buffer (which holds 128 bytes). available() inherits from the Stream utility class.
Arduino Mega only:
the number of bytes available to read
Arduino Mega example: