Adding test for #4511
Joins are an integral parat of a query, keeping them for count operations

Fixes #4511
Merge pull request #4512 from cakephp/3.0-fix-contain-count

3.0 fix contain count