もちろんだ！

```python
from pathlib import Path

# path to the folder
folder = "..."  # TODO: change
folder = Path(folder)  # convert to path for simplicity

# get all file paths
files = (file for file in folder.iterdir() if file.is_file())

# iterate and rename
for i, file in enumerate(files, start=1):  # start numbering from 1 as requested
    # new file name with extension kept as it was before
    new_file = file.with_stem(str(i))
    # comment out below assert if overwriting is okay
    assert not new_file.exists(), (
        f"The new name '{new_file}' for file '{file}' already exists, will not overwrite!"
    )
    # rename
    file.rename(new_file)
```
Sure!

```python
from pathlib import Path

# path to the folder
folder = "..."  # TODO: change
folder = Path(folder)  # convert to path for simplicity

# get all file paths
files = (file for file in folder.iterdir() if file.is_file())

# iterate and rename
for i, file in enumerate(files, start=1):  # start numbering from 1 as requested
    # new file name with extension kept as it was before
    new_file = file.with_stem(str(i))
    # comment out below assert if overwriting is okay
    assert not new_file.exists(), (
        f"The new name '{new_file}' for file '{file}' already exists, will not overwrite!"
    )
    # rename
    file.rename(new_file)
```