Put product_variant_count on template form view.

Fixes #2593
Fixes #2588
Fixes #2570