A study has found more gorillas in West Africa than scientists had previously expected - but the number is declining fast.