List files older than 5 days:
find ./ -mtime +5
To count all files older than 5 days
find ./ -mtime +5 |wc -l
To move files to an archive directory:
find ./ -mtime +5 -exec mv {} /var/archive \; -print
To delete the files
find ./ -mtime +5 -exec rm {} \; -print