use master
select count(*) from sysdatabases where name not in ('master','tempdb','model','msdb','IBM')