add rescue for count no method error