Statistics plugin fns

statistics plugin fns