cppreference.com > C++ I/O > gcount
gcount
Syntax:
  #include <fstream>
  streamsize gcount();

The function gcount() is used with input streams, and returns the number of characters read by the last input operation.