def get_model_counts(tagged_models, tag):
model_counts = []<EOL>for model in tagged_models:<EOL><INDENT>model['<STR_LIT:count>'] = model['<STR_LIT>'](tag).count()<EOL>if model['<STR_LIT:count>']:<EOL><INDENT>model_counts.append(model)<EOL><DEDENT><DEDENT>return model_counts<EOL>
This does a model count so the side bar looks nice.