Create stats.xqm

beginnings of an XQuery statistics library