Collection count

An attempt to fix http://code.google.com/p/otwarchive/issues/detail?id=1086; not guaranteed to work.