Distance in Tree
A connected graph without cycles is called a tree.
The distance between two vertices of a tree is defined as the length (in edges) of the shortest path between these vertices.
Given a tree with vertices and a positive integer . Compute the number of distinct pairs of vertices of the tree whose distance is equal to . Note that pairs and are considered the same pair.
Input
The first line contains two integers and — the number of vertices in the tree and the required distance between vertices.
The next lines contain the edges of the tree in the format , where and are the vertices of the tree connected by the -th edge. All specified edges are different.
Output
Print a single integer — the number of distinct pairs of tree vertices whose distance is equal to .