SELECT COUNT(1) FROM information_schema.processlist WHERE user = 'the_username_used_by_the_slave';