Count nearby resources to decide which way to move