Hi umaa.spk, and welcome to English Forums.
I would be most likely to say this: I have the same number of pens as you.
If you really want to use the word "equal" then maybe "The number of pens I have is equal to the number you have." or "The number of pens I have is equal to the number of yours."