For Ruby, count branches and dependecies