use python script for counts