SELECT * FROM  sys.viewS
select count(*) as ProceduresCount from sys.procedures

select count(*) as TablesCount from sys.tables