I'm pretty sure you can't accomplish this in a separate module because there's no way to look up the current user. BUT, in the same module that you collect the line count, you can add the rest of the logic you're looking for. Hopefully this is acceptable since you're going to collect it by user anyway. You'll have to use subsidiary views though.
Here is my module 1 per your description. A number of lines can be entered by each user.
In Module 2 I have List 1 as a page selector, and List 2 (which goes from 1-20 in my case).
I have 2 line items here. 1 is just an arbitrary line item the user can input into, the other is a filter.
in the filter line item, I have it dimensionalized by 1-20 list and users. the filter here is just as you described, saying that it's true if the number is less than or equal to the number input into module 1.
From there, you can apply a filter to your module and select "Users -- Current User--"