Barking at squirrels keeps my dog Sparky entertained.
The phrase barking at squirrels is which of the following?

A. a gerund phrase that modifies a verb

B. a gerund phrase that acts as a subject

C. a participial phrase that acts as a subject

D. a participial phrase that modifies a noun