added function for vacation counting