How many branches where have more than average number of memberships are there?
select count(*) from branch where membership_amount > (select avg(membership_amount) from branch)