Added call to get the number of elements in the dynalloc structure