Welcome!! Congratulations on the grandbaby.
I'm wondering if there was a typo in the pattern, which is hard to know for sure without seeing the exact pattern. However I wonder if it should read.
Knit to last 22 sts, cast on 2 sts, (k10 sts,cast on 2 sts) twice, k2
That would give you the right stitch count and also still allow what sounds like button loops to be there. Or there could be a typo the other way.
Knit to last 20 sts, cast on 2 sts, (k9 sts,cast on 2 sts) twice, k2.
Does it show a stitch count for the end of that row that you could compare to? Or if this is the button band like it sounds what about the corresponding side, how do they compare?