Add year count function. organize exports.