basic_istream::gcount

streamsize gcount() const;

The member function returns the extraction count.