buffer-display-count

buffer-display-count is a variable defined in `C source code'.
Its value is
0

global value is the same.
  • Automatically becomes permanently buffer-local when set.

Documentation:
A number incremented each time this buffer is displayed in a window.
The function `set-window-buffer' increments it.