I am looking for an ArcPy command to get the number of features in map layer.
There are posts on how to check the number of features in the source of the map layer with
arcpy.GetCount_management(lyr.dataSource)
but how to take into account any Definition Queries set for that layer and get the number of displayed features?