count method and xml string support (as opposed to file only)

Offering to resolve issue: https://github.com/RHInception/ansible-xml/issues/3