Add method to retrieve the significant directory count

See ticket #10296.