openmelody/mt-plugin-configassistant — comment on commit b8de643c940fb08ba84e9e144d3fb70c97b0b19b
File:  line 0
By Hiranyaloka:

"$#array" returns the zero-based index of the last item in an array. The scalar function is used to force a scalar context, which is unnecessary here because the assignment is already scalar context. So all you need is:

$count = @ids;