immediate predecessors

hi,
how to get the number of immediate predecessors for
each basic block of LLVM IR (arguements of remarks
statement at
the beginning of the basic block)

thank you
aditya