Fix count and template doc