so I know that if you talk to the sleepy guy at the battle tree and you wake him up you can then see your Pokemons' IVs. apparently you have to hatch lots of eggs first. I'm not sure if this is true, but if it is how many do I need to hatch?
Yes, you need to hatch 20 eggs. Then, you go to the Battle Tree and talk to the Judge. He will give you access to the IV checking system located in your PC boxes afterwards.