A new survey shows farmer optimism is improving.