Bug fixes for archivelist: handling of arguments and counting