This if/ifelse/else could be simplified and made more readable using something like:

```ruby
case count
when 1
   ...
when 0
   ...
else
   raise Puppet::Error, ...
end
```