I have another area on the same sheet tracks all the sizes for the month of October. Cell AI7 has this formula

**=COUNTIFS(J7,"1",I7,10)**. It is a formula that I have used for another application, & I am trying to modify. The expected answer should be 5, but I can’t figure out the correct formula. I have googled, but have not been successful. I guess, my question is how do I replace "1" with something that accepts a variable answer.