Allow changing the AR database in beforeCount()

like it is possible in beforeFind() already.

fixes #3014
[NL] Translation brought up to date
Merge pull request #3020 from Blizzke/master

[NL] Translation brought up to date
[ci skip]
Added support for formatting DateTime instances to CFormatter

fixes #3023
Found a typo
one more
few more typos
Merge pull request #3038 from munawer-t/master

Found typo