count increment and xml rendering