Python mongo counter