Pattern direction help

can someone please help in deciphering these directions. i’m knitting a baby jacket and this row creates the button holes. i have 52 stitches on my needle. the directions are:
Rib 3, cast off 2 sts, (rib 8, cast off 2 sts) 4 times, rib 2
when i count the stitches, i only count 47. where am i missing some?
thank you very much.

thanks anyway. i finally figured it out.
:knitting: