add async way to count files