Remove unneeded special case to calculate size for has_many :through

All cases are properly handled in CollectionAssociation
for all subclasses of this association
Merge pull request #18174 from bogdan/cleanup_has_many_though_association_count

Remove unneeded special case to calculate size for has_many :through