(b) If it barks for sustained periods of more than 1/2 hour, or during the night hours so as to disturb the peace and quiet of a neighborhood or area, not including a dog which is guarding, working, or herding livestock, as defined in RSA 21:34-a, II(a)(4);