How to get the fields and their field records count in info log in x++

Hi Team,

Please help me on the  X++ code  for  a table  how many fields are in a table  and along with count of  how many records in a particular fields related  records total

for example one field having no records( zero records), one field having some of the lines empty records 

I want to display the if field having zero records that particular fields i need the select statement

in the infolog.