Code for logN-logS Analysis