Validate the number of posts in widget()