Updated all By snippets to have matching behavior, consistent argument naming and added countBy as per #100.