Hello there Mariana,
Hope you're doing well.
I think you're just missing a filter in your Aggregate:
Slot.ArmazemId = SelectedArmazemId
This will filter your records just for that selected ArmazemId.
After that you just need to do the Count :)
Kind regards,
Rui Barradas