Subsample images should also count towards the parent sample's image count.
Post-save hook to update related field counts
Merge pull request #18 from kristallizer/api

Minor fix to the resource count migration and a post-save hook on models