— This case comes up on the record, to have reviewed certain rulings of the trial court upon the demurrer of defendants to the compbaint, and the demurrer of plaintiff to special pleas of the defendants. There are about thirty assignments of error, but they are easily classified.
The suit was brought by Chambers County, to recover dam*389ages for the breach of a written contract, made with the defendants, for the hire of the county convicts of Chambers county. The contract was made on the 26th day of December, 1885, was to take effect on the 1st day of January, 1886, and terminate on the 1st day of January, 1889.
The first ground of demurrer is, that the complaint fails to' aver that plaintiff is a corporation. This court has judicial knowledge of the corporate character and names of the counties of the State.— Overton v. State, 60 Ala. 73; Code, § 866; Camp v. Marion Co., 91 Ala. 210.
The second class are those which are directed against the failure of the complaint to state the names of the different convicts, the date of conviction, term and expiration of sentence, and for what county they were sentenced. It is enough to say, without considering each ground of demurrer under this head, that the fifth count of the complaint was so amended as to cure all defects, if there were any, and which is not decided, raised or suggested by the demurrer to this count.
The third class are those which assert the proposition, that the complaint must aver not only a breach, but further show wherein and how damage resulted to plaintiff from a breach of the contract. Every breach assigned is based upon some covenant contained in the written contract. Whenever there is an unwarranted breach of contract, some damages are recoverable, at least nominal damages; and it is well settled, if anything is recoverable, the way to test the extent of the recovery is not by demurrer. The amount of the recovery is controlled and restricted by the exclusion of improper evidence, and by charges to the jury. — Daughtery v. Am. Un. Tel. Co., 75 Ala. 171. The rule declared in the foregoing authority is based upon sound principles of law and of pleading, and disposes of very many of the grounds of demurrer.
This brings us to the consideration of the fourth and last class. The complaint avers that the contract was executed on the 26th day of December, 1885, and was to continue in force until the 1st day of January, 1889. The statute under which the contract was made has the following provision : “§ 37. Be it further enacted, that no contract shall be made previous to the first day of March, 1887, to continue longer than the first day of January, 1888.” The statute clearly authorized the making of a contract for the hire of convicts as agricultural laborers. The validity of the contract itself depends upon the construction and effect of this section of the statute. The demurrer attacks the validity of the contract as an entirety. None of the grounds of demurrer are directed to any breach of the contract which occurred, if we could presume from the *390averment of the complaint that any did occur, after January 1st, 1888; and there is no plea setting up facts which raise that question. If, therefore, the contract was authorized and valid from the time of its execution to January 1st, 1888, the duration limited by statute, then the demurrer was not well taken. The statute does not declare a contract which by its terms is to continue longer than the first day of January, 1888, to be void.
Section 1836, Code of 1886, is as follows : “No leasehold estate can be created for a longer term than twenty years.” Construing this section in Robertson v. Hayes, 83 Ala. 290, this court held, that “when an estate is created, vesting in possession, and there are annexed to it restraints and limitations not allowed by law, only the restraints and limitations are void-; . . . that when there is affirmative power to lease for a specified term, a lease exceeding the term is void; but when there is a prescribed number of years, the lease, though for a term exceeding the prescribed limit, will stand good for the term authorized by the power. The language, that‘no leasehold can be created for a longer term than twenty years,’ is equivalent to the declaration that a lease shall not be valid for a longer term than twenty years.” In such cases, it was said in the same authority, the statute draws the boundary line, separating the legal from the illegal parts, and leaves it to stand good for the term for which the lessor had authority to create the leasehold estate. The lease, being void only because of the limitation upon the general authority, is void only as to the excess.
. We have quoted largely from this opinion, because of ifs applicability to the question before us. The statute, § 37, supra, provides that no contract shall be made to continue longer than the first day of January, 1888. Applying the principles of law decided in Robertson v. Hayes, we hold the contract is not void in toto, and if void to any extent, it is only as to the time after January 1st, 1888. The contract was revoked and terminated by an order of the commissioners court before that time. Its power to revoke the contract is not controverted.
All the rulings of the trial court are in conformity to these principles, and must be affirmed.