How to find out how many textures are in a scene?

Is there a way to determine how many textures there are in a scene? I’ve occasionally run into CUDA’s 95 texture limit when rendering on the GPU and it would be nice to know how many textures a scene currently has.

If there is nothing in the user interface to determine how many textures are present, is there a Python command that I can run?

Set the Outliner to ‘Blender File’

Or enable the Blend Info addon that comes with blender

Thank you, Richard – the Blend Info add-on was exactly the sort of thing I was looking for.