somehow i made a massive typo with count attribute. also added search model.