How do you combine data.length for different models in a tab?

Short of using javascript, I’d create another model just for this purpose. That model have three conditions that with the following logic. 1 OR 2 OR 3
Each condition would be Id “in” field model of another model field Id.