Implementation of Setters and Getters for nb_elements