Counters.sol Don't increment counter in constructor

Hello everybody:

am trying to start the counter by constructor with a increment, add one, but when deploying I verify that it is still zero.
Is there any problem to start a count through constructor with this library? Or what mistake am I making?

// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract Contract is Ownable {

    using Counters for Counters.Counter;
    using SafeMath for uint256;

    mapping(uint256 => mapping(address => address[])) public mapping1;
    mapping(uint256 => address) public mapping2;
    mapping(uint256 => uint256) public mapping3;
    mapping(uint256 => uint256) public mapping3;

    Counters.Counter private counter1;

    uint16  public constant CONSTANT1 = 2;
    address public variable1;
    uint256 public variable2;

    constructor(address _parameter) {
   
     variable1 = variable1.add(1);
    mapping2[counter1.current()] = _parameter;
    mapping3[counter1.current()] = CONSTANT1;  
    counter1.increment();
    }
}

You should be able to increment it in the constructor.

How are you verifying if it's been incremented?

I changed the access variable from private to public of the counter to check its value after deploying. And now it is initialized.
para_mandar

Now I'm a bit puzzled.
I had changed the counter for a standard variable and now I don't remember how I got that error
that I have advanced in the development of the contract from that point.
How weird..

Apologies.