Don't detect counter_caches by attribute name

This commit fixes issue #8446 in which false positive detection of
counter_cache columns causes inconsistent behaviour in has_many
assocations.