This module lets you limit number of resources a user may connect.
After installing and adding the module to modules_enabled you can specify a limit with max_resources which defaults to 10.
modules_enabled
max_resources