minor improvement to count-days-in-yearo