Apparently count() in PHP defaults to 1...

This leads to a rather serious bug.