I am using category to exhibit current occasions. Posts are taken off category after they have expired. Now I want conditional query to top of the page

if cat=1 has 3 posts -> div style three col

else if cat=1 has 4 posts -> div style four col

Essentially I want a question with conditional according to publish count in category

Many thank you