cache counting added