What is the number of branches that have more than the average number of memberships?
select count(*) from branch where membership_amount > (select avg(membership_amount) from branch)