Linetype counting

Hi!
how can I count all Linetypes
using rvb or py code?

I tried with Rhino.RhinoDoc.ActiveDoc.Linetypes.Count
but it also counts eliminated Linetypes :pensive:

Maybe this:
https://developer.rhino3d.com/5/api/RhinoCommonWin/html/Properties_T_Rhino_DocObjects_Tables_LinetypeTable.htm#! —> ActiveCount

tks :+1: