compute rudimentary statistics