Statistical inference for capture-recapture experiments