Fix gub due to missing namespace
Remove count in for loop for better performance
Merge pull request #212 from fzaninotto/insights

Improvements based on SensioLabsInsights analysis