select count(*) from system.processes where current_database = currentDatabase();