Added default count value, improved statistics