add some functions

function for getting all id's, classes, tags;
functions for calculate id's, classes, tags count;
getting all id's/classes/tags by class/id/tag