Cache relationship count for many-to-many form control