countfiles python alternative to perl for csil at ucsb