Return number of files loaded in directory compile

[no ci]