Fixed tasks count in header by checking where done is not nil