fixes #119, ignoring directories when determining file counts.