Media and direntry count and iterator procs via templates.