A year is how long it takes a planet to orbit around its star.
On Earth we call a year 365 days. The Earth actually orbits the Sun in 365 1/4 days. So that is why we have a leap year every four years (more or less).