PyConsoleScreenBuffer.GetNumberOfConsoleInputEvents

int = GetNumberOfConsoleInputEvents()

Returns the number of unread records in the input queue