Added methods in course.rb to count lessons and resources, used resources in views