Added a count to Prolog results
Further updated Prolog format
 - Merged attribute/child into value