Arrays of InP-based Avalanche Photodiodes for Photon Counting