Add: CounterCache feature to hasMany models

as discussed in issue #1879 
Why `&& true`? I think that is the issue for pg and maria