What is the subject in the sentence.
The dogs bark as the mail carrier delivered the packages.

Answer:
The answer is dog.
Explanation:
The dog is completing the action. An object would be the packages as they are being carried (an action is being done to them).
Answer:
Dogs
Explanation:
The subject is typically the first thing described in a sentence.