Implement some basic statistics