The "Count Chars at Port" function is used to read the number of characters in the serial port buffer. This function comes in handy when you are expecting a certain number of characters, but do not want to pull them from the buffer until the correct number of characters appears. To call this function do the following: