Small nitpick — but I would not `count()` in each loop. ;)