Add missing stats.c file

The new source file stats.c file was accidently missing from the
repository.