Fixes template counts to include only published posts