counting objects while the camera is moving and not static in a path

i have a use case where i need to count sea animals in a big aquarium when moving camera is moving and scanning the aqaurium. i think i belong to object tracking of some sort and i see you did it on static video, but i am looking for a solution when camera is moving in a big space and counting.