How to select every x files

This thread might prove helpful: