It does not work
===

Counterspell and Dispel Magic work only on spells, but Wild Shape is not a spell.

Dispel Magic:
>Choose one creature, object, or magical effect within range. Any **spell** of 3rd level or lower on the target ends.

Wild Shape is [not a spell][1].


  [1]: https://rpg.stackexchange.com/a/129469/9552