public int getCount(E elem) {
		int count = 0;
		int size = size();
		for (int i=0; i<size; i++) {
			if (equalsElem(doGet(i), elem)) {
				count++;
			}
		}
		return count;
	}
Counts how many times the specified element is contained in the list.

@param elem	element to count
@return		count how many times the specified element is contained in the list
jphp-runtime/src/php/runtime/memory/support/IList.java