<?php echo S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED; ?>
This will output the number of files they're allowed to download.
(the number of files allowed is based on their Membership Level)

---- s2member Shortcode Equivalent ----

[s2Get constant="S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED" /]