Build: Validate number of generated manifests

Closes gh-1241