*Inc once in each of next 2 sts, rib 3, rep from * to last 3 sts, inc once in each of next 2 sts, rib 1."
The repeat is the increase once in the next 2sts, rib 3. If you subtract the last 3 sts, that repeat is worked over 55sts of the 58 stitch cast on. Increase 2x for every 5sts or 22sts for 55sts.
For the last 3sts there are 2 more increases for a total of 24sts increased. 58 + 24= 82sts.
You may have put in extra increases somewhere on the row and that may make the hat too big or may not work with the pattern stitch in the main body. An increase like knit front and back (kfb) or knit right loop (KRL) will work here.