Is it possible to limit number of files a non-admin user can upload via the WordPress media library?

Is it possible to limit number of files a non-admin user can upload via the WordPress media library?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)