[build] count unnamed rules