fix count when the key is an attribute written in dot notation
Fixed tests
Merge pull request #3725 from GrahamCampbell/4.1-fixes

[IMPORTANT] FIXES FAILING TESTS
Merge branch '4.1' of https://github.com/marcoscoelho/framework into marcoscoelho-4.1
Minor spacing fixes in database tests
Merge branch '4.1' of github.com:laravel/framework into marcoscoelho-4.1
Fix present count.
Merge pull request #3727 from GrahamCampbell/4.1-cs

Minor spacing fixes in database tests