Complexity of forests