implement stats for collections