Riven is by no means a HARD counter to yorick, but by all means, has ways to defeat him. To start, she has the ability to destroy his ghouls during the exchange while also damaging yorick. If not killing the ghouls, she at least will render them useless due to the AoE stun (which is why jax is another champion with the means to fight yorick, as well as cho gath).
Both are lane bullies, and whoever gets the early lead will dominate the lane from then on. The BEST way to beat a yorick is to invade and get first blood as riven. Unreliable method, but coming to lane with two long swords will absolutely decimate him. He will be able to do nothing but hope to farm at a distance with his W and E. Take it from me, who experienced that first hand as yorick.