You have to tell us what definition of a tree you are using. This is important because there are several equivalent definitions.

Consider the following definition of a tree:

A graph with vertices is a tree if and only if is connected and has edges.

From the definition I gave above your result follows trivially:

Then must have

edges.