Here's what you can do if you're not getting the number of stitches per inch the pattern calls for to ensure your project will be the right size.
Complete Guide to Knitting Gauge, and How to Measure It - Sarah Maker
All About Yarn Weights for Knitting
How to Substitute Yarns in Knitting
How to Get Perfect Knitting Gauge — Blog.NobleKnits
How to Modify a Knitting Pattern for a Different Yarn Weight
Learn to Knit: Gauge 101 - Ysolda
What's Knitting Gauge? A Step-by-Step Guide for Beginner Knitters
Snoqualmie Knitalong // How to Knit Cables + Swatching
How Do I Decide Which Knitting Style to Learn?