When dealing with multi-dimensional error collections, the count() function causes a strange infinite loop for some reason. I removed the function since it's basically redundant.