added pixel coutning script