tzinger,
Have been searching high and low for that ability also.
Lisp function (Length(Layoutlist)) does return the number of layout tabs (minus the model tab), so you do end up with the total number of tabs. That being said, my ability to write lisp from scratch is non-existant, or even how...