new directive for counting dates added