// Exam 3 Kathleen E. Williams
// Question 1

#include <iostream>
#include <string>
#include <list>
#include <algorithm>

using namespace std;

template <class T>
class Box {
public:
 
 Box(T x = 12): siz(x) {}
 void size() {
   int s = 0;
   // couldn't get the ending number corrct
   for (int i = 0; i <= length(); ++i)
     s = s + 1;
  cout << "The number of elements in the box is: " << s << endl;
 }
private:
 T siz;
};


int main() {
 Box<int> box1(12);
 Box<string> box2("testing");
 box1.size();
 box2.size();
 return 0;
}
