I’m fairly new to praying and reading the Quran and someone said i messed up on some parts but I never knew I did some parts wrong. Do they still count if I never knew?

No.