fix relation counting methods to use instance count
fix relation counting methods to use instance count

rfaulkner/databayes,rfaulkner/databayes,rfaulkner/databayes,rfaulkner/databayes,rfaulkner/databayes