Counting in anonymous dynamic networks under worst-case adversary