On the number of vertices and edges in a tree